// This file won't be used actually as it will be replaced by the build process.
// See src/lib/vite-rsc/plugin.ts (createVirtualAdapterPlugin)

import type { ImportGlobFunction } from 'vite/types/importGlob.d.ts';
import netlifyAdapter from './netlify.js';
import nodeAdapter from './node.js';
import vercelAdapter from './vercel.js';

declare global {
  interface ImportMeta {
    glob: ImportGlobFunction;
  }
}

export default process.env.VERCEL
  ? vercelAdapter
  : process.env.NETLIFY
    ? netlifyAdapter
    : nodeAdapter;
